﻿//------------------------------------------------------------------------------------------------- 
// <copyright file="CssImage.cs" company="Fm Computer di Menatti Fulvia">
// Copyright (c) Fm Computer di Menatti Fulvia.  All rights reserved.
// </copyright>
// <summary>Defines the CssWebResourceImage type.</summary>
//-------------------------------------------------------------------------------------------------
namespace FmjQuery
{
    /// <summary>
    /// Web Resource Image for css
    /// </summary>
    public class CssImage
    {
        #region Costruct
        /// <summary>
        /// Initializes a new instance of the CssImage class.
        /// </summary>
        public CssImage()
        {
            this.IsEmbedded = false;
        }

        /// <summary>
        /// Initializes a new instance of the CssImage class.
        /// </summary>
        /// <param name="name">name of image</param>
        /// <param name="id">id into css file</param>
        /// <param name="url">url of image</param>
        public CssImage(string name, string id, string url) : this(name, id, url, false)
        {
        }

        /// <summary>
        /// Initializes a new instance of the CssImage class.
        /// </summary>
        /// <param name="name">name of image</param>
        /// <param name="id">id into css file</param>
        /// <param name="url">url of image</param>
        /// <param name="isEmbedded">indicates if image is embedded resource</param>
        public CssImage(string name, string id, string url, bool isEmbedded)
        {
            this.Name = name;
            this.ID = id;
            this.Url = url;
            this.IsEmbedded = isEmbedded;
        }
        #endregion

        #region Property
        /// <summary>
        /// Gets or sets name of css
        /// </summary>
        public string Name
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets code for identifies location of image
        /// </summary>
        public string ID
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets Url of image
        /// </summary>
        public string Url
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether is embedded resource
        /// </summary>
        public bool IsEmbedded
        {
            get; set;
        }
        #endregion
    }
}
